package com.bilibili.movies.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")//数据库表名
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String email;
    private String password;
    private String avatar;
    private  Integer controller;
    @TableField("nick_name")
    private String nickName;
    @TableField(exist = false)
    private String code;

}
